package cn.itcast.user.dao;

import org.junit.jupiter.api.Test;

import cn.itcast.user.domain.User;

public class UserDaoTest {

	/*
	 * UserDao的测试类
	 * 
	 */
	
	@Test
	public void testFindByUsername() {
		UserDao userDao = new UserDao();
		System.out.println(userDao.findUserByName("李四张三"));
		
	}
	@Test
	public void testAdd() {
		UserDao userDao = new UserDao();
		User user = new User();
		user.setUsername("李四");
		user.setPassword("123");
		userDao.add(user);
		
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
